// 商品详情之男子鞋类的效果
class XL {
  constructor(nzi, nzxl, nvz, nvz1, fs, fs1, pj, pj1) {
    this.oNzi = nzi;
    this.oNzxl = nzxl;

    this.oNvz = nvz;
    this.oNvz1 = nvz1;

    this.oFs = fs;
    this.oFs1 = fs1;

    this.oPj = pj;
    this.oPj1 = pj1;

    this.mouseover();
    this.mouseout();
  }

  mouseover() {
    let that = this;
    this.oNzi.onmouseover = function () {
      that.oNzxl.style.display = "flex";
     
    };

    this.oNvz.onmouseover = function () {
      that.oNvz1.style.display = "flex";
    
    };

    this.oFs.onmouseover = function () {
      that.oFs1.style.display = "flex";
    
    };

    this.oPj.onmouseover = function () {
      that.oPj1.style.display = "flex";
     
    };
  }

  mouseout() {
    let that = this;
    this.oNzi.onmouseout = function () {
      that.oNzxl.style.display = "none";
    
    };

    this.oNvz.onmouseout = function () {
      that.oNvz1.style.display = "none";
     
    };

    this.oFs.onmouseout = function () {
      that.oFs1.style.display = "none";
     
    };

    this.oPj.onmouseout = function () {
      that.oPj1.style.display = "none";
  
    };
  }
}
